import React, { Component, Children } from 'react'

// console.log(Children)

export default class Com extends Component {
    render() {
        // console.log(this.props)
        const { children } = this.props
        // console.log(children)
        // console.log(Children.count(children))

        // console.log(Children.only(children))
        return (
            <div>
                {/* <h3>我是Com</h3> */}
                {
                    Children.map(children, (item) => {
                        return item
                    })
                }
            </div>
        )
    }
}
